package com.zjw.core.reflect;

public class Son extends Father {
    private final String LIFE_GOAL = "财富自由";

    private String name;
    protected int age;
    public String password;
    private String bookName = "我的财富自由之路";

    public Son(String name, int age, String password) {
        this.name = name;
        this.age = age;
        this.password = password;
    }

    public Son() {
    }

    public void print(){
        System.out.println("Son Msg - name : "
                + name + "; age : " + age);
    }

    public void draw(String pictureName){
        System.out.println("儿子在画画"+pictureName);
    }

    private void write(String bookName){
        System.out.println("我正在写一本书叫"+"《" + bookName + "》");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getLIFE_GOAL() {
        return LIFE_GOAL;
    }
}
